Simplifying Control Flow
$
npx mdskill add obra/clank/Simplifying Control FlowFlattens nested conditionals using early returns or table-driven methods to maintain clarity and reduce complexity.
- Helps developers manage multi-condition logic by avoiding deep nesting that obscures business rules.
- Integrates with all programming languages, as it focuses on general code structure without specific dependencies.
- Recommends refactoring based on nesting depth exceeding 2-3 levels or repeated if/else patterns.
- Presents results through code examples that demonstrate simplified, more readable control flow.
SKILL.md
.github/skills/Simplifying Control FlowView on GitHub ↗
No skill content available yet.